package com.acme.task4;

/**
 * Class used to test arrays
 * @author S.Zhidkov
 *
 */
public class Task4Arrays {
	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 9;
		array[4] = 3;
		array[5] = 7;
		array[6] = 7;
		array[7] = 9;
		array[8] = 3;
		array[9] = 7;

		int numOf3 = 0;
		int numOf7 = 0;
		int numOf9 = 0;

		for (int i = 0; i < array.length; i++) {
		    if (array[i] == 3) {
		        numOf3++;
		        continue;
		    } else if (array[i] == 7) {
		        numOf7++;
		        continue;
		    } else if (array[i] == 9) {
		        numOf9++;
		    }
		}

		System.out.println("Number of 3: " + numOf3);
		System.out.println("Number of 7: " + numOf7);
		System.out.println("Number of 9: " + numOf9);
	}
}
